<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.trade.tb_ordergoods.Tb_ordergoodsInfo" %>
<%@page import="java.util.*" %>
<%@page import="com.lmpop.trade.ti_attach.Ti_attachInfo" %>

<%
  Ti_attachInfo  ti_attachInfo = new Ti_attachInfo(); 
  


%>



<html>
  <head>
    
    <title>ti_orderinfo Manager</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
</head>

<body>

  <% 
  	
  	String order_id="";
  	if(request.getParameter("order_id")!=null) order_id = request.getParameter("order_id");
  	
  	Tb_ordergoodsInfo  tb_ordergoodsInfo  =new Tb_ordergoodsInfo();
    
    List list = tb_ordergoodsInfo.getListByPk(order_id);
  	
  
  %>
	
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
		
		
		<tr>
			<td>
			      商品图片			
			</td>
			<td>
				商品名称
			</td>
		<td>
				商品属性			
		</td>
		<td>
				销售价			
		</td>
    <td>
				购买数量			
		</td>
   </tr>
	<%
	  if(list !=null && list.size()>0){
       for(int i=0;i<list.size();i++){
           Hashtable gMap =(Hashtable)list.get(i);
           String goods_id="",cust_id="",goods_state="",state_date="",goods_name="",goods_attr="",goods_num="";
           String shop_price="",shipping_fee="",pack_id="",pack_fee="",tax_invoice="",discount="",confirm_money="";
           if(gMap.get("goods_id")!=null)
           {
              goods_id = gMap.get("goods_id").toString();           
           } 
           if(gMap.get("goods_name")!=null)
           {
              goods_name = gMap.get("goods_name").toString();           
           }
           if(gMap.get("goods_num")!=null)
           {
              goods_num = gMap.get("goods_num").toString();           
           } 
           if(gMap.get("shop_price")!=null)
           {
              shop_price = gMap.get("shop_price").toString();           
           }          	
      
            String img_path =  ti_attachInfo.getFilePathByAttachrootid(goods_id);
            
            if(img_path.equals(""))
            {
               img_path ="/program/admin/images/cpwu.gif";            
            }             
       
	%>	
  
  <tr>
		<td><img src="<%=img_path%>" border="0" width="85" height="85" /></td>
			<td><%=goods_name%></td>
		<td></td>
		<td><%=shop_price%></td>
    <td><%=goods_num%></td>
   </tr>
      
  
  <%
   }  
 } 
  %>
		
	</table>
	
</body>

</html>
